package com.you.atlas.web.place.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.Navigator;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.you.atlas.biz.place.service.CollectService;
import com.you.atlas.biz.place.service.RateService;
import com.you.atlas.web.place.module.PlaceModule;
import com.you.common.ibatis.data.DataList;

public class RateList extends PlaceModule {

    @Autowired
    private RateService        rateService;

    public void execute(@Param("pageNo") int pageNo, @Param("id") Long placeId, Context context,
                        Navigator navigator) {
        if (checkPlace(placeId, navigator, context)) {
            DataList dataList = rateService.queryRatebyPlaceId(pageNo, placeId);
            context.put("dataList", dataList);
        }
    }
}
